home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / util / blank / bserver_v14.lha / BServer_v1.4 / Sources.lha / Sources / include / server.h < prev   
Encoding:
C/C++ Source or Header  |  1995-03-23  |  2.9 KB  |  125 lines

  1. /*
  2.  * Server.h 1.4
  3.  * Copyright © 1995 by Stefano Reksten of 3AM - The Three Amigos!!!
  4.  * All rights reserved.
  5.  *
  6.  * DON'T FOOL WITH THIS FILE! It's BServer private only. Modifying
  7.  * anything could bring to unpredictable results. Moreover your
  8.  * programs would not be compatible with future releases of this
  9.  * program.
  10.  *
  11.  */
  12.  
  13. #ifndef EXEC_TYPES_H
  14. #include <exec/types.h>
  15. #endif
  16.  
  17. #ifndef EXEC_PORTS_H
  18. #include <exec/ports.h>
  19. #endif
  20.  
  21. #ifndef GRAPHICS_DISPLAYINFO_H
  22. #include <graphics/displayinfo.h>
  23. #endif
  24.  
  25. #ifndef SERVER_H
  26. #define SERVER_H
  27.  
  28. #define CLIENTNAME_MAXLENGTH 108
  29. /* former definition was 32 */
  30.  
  31. /* Client actions */
  32.  
  33. #define ACTION_IDLE        0
  34. #define ACTION_ARRIVED     1
  35. #define ACTION_LEAVING     2    /* removed, use ACTION_FAILED */
  36. #define ACTION_FAILED      3
  37.  
  38. /* Server commands */
  39.  
  40. #define COMMAND_IDLE        0
  41. #define COMMAND_QUIT        1
  42.  
  43. #define PROGRAMNAME    "BServer"
  44. #define PROGRAMVERSION    "1.4"
  45.  
  46.  
  47. #define SERVERPORTNAME PROGRAMNAME"Port"
  48.  
  49. /*=========================================================*/
  50. /*=== ClientMessage =======================================*/
  51. /*=========================================================*/
  52.  
  53. struct ClientMessage {
  54.     struct Message cm_Msg;
  55.     struct DisplayIDInformation *DInfo;
  56.     ULONG cm_Action;
  57.     };
  58.  
  59. /*=========================================================*/
  60. /*=== ServerMessage =======================================*/
  61. /*=========================================================*/
  62.  
  63. struct ServerMessage {
  64.     struct Message sm_Msg;
  65.     ULONG sm_Command;
  66.     APTR sm_Data;
  67.     };
  68.  
  69. /*=========================================================*/
  70. /*=== ClientNode ==========================================*/
  71. /*=========================================================*/
  72.  
  73. struct ClientNode {
  74.     struct Node cn_Node;
  75.     char cn_ClientName[CLIENTNAME_MAXLENGTH];
  76.     };
  77.  
  78. /*=========================================================*/
  79. /*=== ModeNode ============================================*/
  80. /*=========================================================*/
  81.  
  82. struct ModeNode
  83.     {
  84.     struct Node mn_Node;
  85.     UWORD mn_Index;
  86.     ULONG mn_DisplayID;
  87.     char mn_Name[DISPLAYNAMELEN];
  88.     };
  89.  
  90. /*=========================================================*/
  91. /*=== DisplayIDInformation ================================*/
  92. /*=========================================================*/
  93.  
  94. struct DisplayIDInformation
  95.     {
  96.     struct DisplayInfo   di_DisplayInfo;
  97.     struct DimensionInfo di_DimensionInfo;
  98.     struct MonitorInfo   di_MonitorInfo;
  99.     UBYTE di_Brightness;
  100.     };
  101.  
  102. /*=========================================================*/
  103. /*=== Gadgets IDs =========================================*/
  104. /*=========================================================*/
  105.  
  106. #define TIMEOUT_GDG    0
  107. #define RANDOM_GDG    1
  108. #define ACTIVE_GDG    2
  109. #define HIDE_GDG    3
  110. #define QUIT_GDG    4
  111. #define BLANK_GDG    5
  112. #define KILL_GDG    6
  113. #define LIST_GDG    7
  114. #define MODEID_GDG  8
  115. #define ADDCLIENTS_GDG    9
  116. #define BRILEVEL_GDG    10
  117.  
  118. #define MENUID_ABOUT 1
  119. #define MENUID_HIDE 2
  120. #define MENUID_QUIT 3
  121. #define MENUID_RAWMOUSE 4
  122. #define MENUID_DISK 5
  123.  
  124. #endif
  125.